package com.party.core.model.member;

/**
 * 统计总计（带会员）
 * Created by wei.li.
 *
 * @date 2017/12/13 0013
 * @time 11:24
 */
public class MemberMerchantCountWithMember extends MemberMerchantCount {
    private static final long serialVersionUID = -6256830072169277675L;

    //机构名称
    private String name;

    //机构电话
    private String mobile;

    // 合作商类型, 0: 系统客户, 1: 大客户
    private Integer partnerType;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getPartnerType() {
        return partnerType;
    }

    public void setPartnerType(Integer partnerType) {
        this.partnerType = partnerType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        MemberMerchantCountWithMember that = (MemberMerchantCountWithMember) o;

        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        return mobile != null ? mobile.equals(that.mobile) : that.mobile == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (mobile != null ? mobile.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "MemberMerchantCountWithMember{" +
                "name='" + name + '\'' +
                ", mobile='" + mobile + '\'' +
                '}';
    }
}
